package cn.tedu.tea.mapper;

import cn.tedu.tea.domain.Comment;
import cn.tedu.tea.domain.vo.CommentListVO;
import cn.tedu.tea.domain.vo.CommentStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentMapper {
    int insert(Comment comment);
    int deleteById(Integer id);
    int deleteByIds(Integer[] ids);
    int update(Comment comment);

//    int countByTitle(String title);
//    int countByTitleAndNotId(String title, Integer id);

    CommentStandardVO getStandardById(Integer id);
    List<CommentListVO> list();

}
